import {firstName,lastName as ln, year } from './profile.mjs'


// import { default as pkg1 } './module1.mjs'
import pkg1 from './module1.mjs'

// import pkg1, pkg1.xxxx

console.log(pkg1.foo())

var a = 10

if (a > 10) {
    console.log(a)
} else if (a > 20) {
    console.log(a)
} else {
    console.log("test", a)
}

var x = 0;
for (let i=1; i<=10000; i++) {
    x = x + i;
}
console.log(x)


var a = ['A', 'B', 'C'];
// for (x of a) {
//     console.log(x)
// }

// var o = {
//     name: 'Jack',
//     age: 20,
//     city: 'Beijing'
// };

// var keys = Object.keys(o)
// console.log(keys)
// for (x of keys) {
//     console.log(x)
// }


var fn = (item) => {
    console.log(item)
}
a.forEach(fn)